package com.chb.demo.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Accessors(chain = true)
@Entity
@Table(name = "user")
public class User {
    @Id
    @Column(name = "account")
    private String account;
    @Column
    private String displayname;
    @Column
    private String password;
    @Column
    private String realname;
    @Column
    private String id;
    @Column
    private String phone;
}
